from settings.common import *

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',  # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'wooflow',  # Or path to database file if using sqlite3.
        'USER': 'root',  # Not used with sqlite3.
        'PASSWORD': 'enovell#666',  # Not used with sqlite3.
        'HOST': '192.168.2.172',  # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '2668',  # Set to empty string for default. Not used with sqlite3.
    }
}

REDIS_HOST = '192.168.2.172'
REDIS_PORT = 2669
REDIS_DB = 0
REDIS_PASSWORD = ''
# CELERY_BROKER_URL = "redis://192.168.2.172:2669/1"